#include<iostream>
#include<string>
using namespace std;
int main()
{
	string s1 = "123",s2;
	s2+=s1;
	s1 = "abc";
	s1 += "def";
	cout<<"1)"<<s1<<endl;
	if(s2<s1)
	cout<<"2)s2<s1"<<endl;
	else
	cout<<"2)s2>=s1"<<endl;
	s2[1] = 'A';
	s1 = "XYZ" + s2;
	string s3 = s1+s2;
	cout<<"3)"<<s3<<endl;
	cout<<"4)"<<s3.size()<<endl;
	string s4 = s3.substr(1,3);
	cout<<"5)"<<s4<<endl;
	char str[20];
	strcpy(str,s4.c_str());
	cout<<"6)"<<str<<endl;
	return 0;
}